<template>
  <h1>EL-下拉选框</h1>
  <el-select placeholder="选择一个你喜欢的城市" v-model="city"
      style="width: 50%">
    <el-option label="重庆" value="cq"></el-option>
    <el-option label="石家庄" value="sjz"></el-option>
    <el-option label="武汉" value="wh"></el-option>
    <el-option label="" value="bj">北京</el-option>
  </el-select>
  <h4>提交的值：{{city}}</h4>
</template>


<script setup>
import {ref} from "vue";
// 武汉默认选中
const city = ref('wh');

</script>

<style scoped>

</style>